﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Core.DataAccess.Model.Migrations.ProjectOrder
{
    public partial class AddOrderCoupon02 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "CouponCode",
                table: "order_basis",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "CouponCodeMoney",
                table: "order_basis",
                nullable: false,
                defaultValue: 0m);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CouponCode",
                table: "order_basis");

            migrationBuilder.DropColumn(
                name: "CouponCodeMoney",
                table: "order_basis");
        }
    }
}
